package com.njbdqn.ALi.zjg.dao;

import org.njbdqn.ali.database.SqlTemplate;

import com.njbdqn.ALi.zjg.vo.MoonNeedRecordVO;

public class MoonNeedRecordDAO {
	private SqlTemplate template;
	
	public MoonNeedRecordDAO(){
		template = new SqlTemplate();
	}
	public MoonNeedRecordVO MoonTicket(int account){
		String sql="select moonbookname,moonbookvotenumber,moonbooktime from moonneedrecord where account=?";
		return (MoonNeedRecordVO) template.resultToArray(sql, new Object[]{account}, MoonNeedRecordVO.class).get(0);
	}
}
